package com.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Family;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FamilyDao extends BaseMapper<Family> {

       @Select("select count(*) from test2.tb_family where account_id=#{id}")
       public Integer selectSum(Integer id);

       @Select("select *from test2.tb_family where account_id=#{id}")
       public List<Family> searchAccountIdFamilies(Integer id);
}
